﻿using IntelligentAgriculture.Contracts.Dto.Input;
using IntelligentAgriculture.Contracts.Dto.Output;
using IntelligentAgriculture.Domain;
using IntelligentAgriculture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentAgriculture.Contracts.Interface
{
    public interface IDepartMentService
    {

        /// <summary>
        /// 获取部门列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PageOutput<DepartMentOutPut>> DepartMnetList(DepartMentInPut input);

        /// <summary>
        /// 新增部门
        /// </summary>
        /// <param name="depart"></param>
        /// <returns></returns>
        Task<int> Add(Department depart);

        /// <summary>
        /// 树形列表
        /// </summary>
        /// <param name="pid"></param>
        /// <returns></returns>
        Task<List<MenuList>> MenuLIst(int pid);

        /// <summary>
        /// 删除部门
        /// </summary>
        /// <param name="departId"></param>
        /// <returns></returns>
        Task<int> Delete(int departId);




    }





}
